﻿#include "DT.h"


#ifdef USEJNI
#include "DT_JNI.h"
using namespace yzrilyzr_util;
JNIEXPORT jlong JNICALL Java_yzrilyzr_util_DT_constructor(JNIEnv*, jobject) {
	DT* ptr = new DT();
	return reinterpret_cast<jlong>(ptr);
}
JNIEXPORT void JNICALL Java_yzrilyzr_util_DT_destructor(JNIEnv*, jobject, jlong dtPtr) {
	DT* dt = reinterpret_cast<DT*>(dtPtr);
	delete dt;
}

JNIEXPORT jfloat JNICALL Java_yzrilyzr_util_DT_getMs(JNIEnv*, jobject, jlong dtPtr) {
	DT* dt = reinterpret_cast<DT*>(dtPtr);;
	return dt->getMs();
}
#endif